package models

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(50)"`
	Password string `gorm:"type:varchar(50)"`
}
type Role struct {
	gorm.Model
	RoleName string `gorm:"type:varchar(50)"`
	Uid      int    `gorm:"type:int"`
}
type Node struct {
	gorm.Model
	NodeName string `gorm:"type:varchar(50)"`
	Rid      int    `gorm:"type:int"`
}
type RoleNode struct {
	gorm.Model
	Rid int `gorm:"type:int"`
	Nid int `gorm:"type:int"`
}
type Shang struct {
	gorm.Model
	ShangID    string `gorm:"type:varchar(50)"`
	ShangXin   string `gorm:"type:varchar(50)"`
	ShangType  string `gorm:"type:varchar(50)"`
	ShangPrice string `gorm:"type:varchar(50)"`
}
type Ding struct {
	gorm.Model
	DingID   string `gorm:"type:varchar(50)"`
	DingName string `gorm:"type:varchar(50)"`
	DingZhi  string `gorm:"type:varchar(50)"`
	Sid      int    `gorm:"type:int"`
}
type ShangDingList struct {
	DingId     int
	DingID     string
	DingName   string
	DingZhi    string
	ShangID    string
	ShangXin   string
	ShangType  string
	ShangPrice string
}
